﻿using System;
using MongoDAO.Configuration;
using MongoDB.Driver;

namespace MongoDAO.Extensions
{
    public static class MongoDatabaseExtensions
    {
        public static void DropCollection(this MongoDatabase database, Type type)
        {
            var collectionName = MongoConfigurationSettings.GetCollectionName(type);
            database.DropCollection(collectionName);
        }
    }
}
